package start.doubudouyin.mapper;

import org.apache.ibatis.annotations.MapKey;
import start.doubudouyin.entity.join.VideoPlay;
import start.doubudouyin.entity.Videoinfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

import java.util.Map;

/**
 * @author mmmm
 * @description 针对表【videoinfo(视频信息表)】的数据库操作Mapper
 * @createDate 2025-06-09 14:01:35
 * @Entity start.doubudouyin.entity.Videoinfo
 */
public interface VideoinfoMapper extends BaseMapper<Videoinfo> {

    Integer Videoupload(Videoinfo videoinfo);
    Integer Videoinfoupload(String title, String description,String videoLabel,String videoId);
    Integer GetLikesCount(String userId);
    List<VideoPlay> FindAll(Integer videoStatus);
    Videoinfo GetVideoInfoById(String videoId);
    Integer UpdateVideoStatus(Integer videoStatus,String videoId);
    Integer deleteVideoById(String videoId);
    Integer updateVideoPassTime(String videoId);

    List<String> getVideoLabelsData();

    @MapKey("videoLabel")
    List<Map<String, Object>> getVideoNumRange30();


}




